""" AdminUserEnclosure Validation Enclosure """

from masonite.validation import RuleEnclosure
from masonite.validation import (required, is_in)


class AdminUserEnclosure(RuleEnclosure):
    """AdminUserEnclosure Validation Enclosure Class."""

    def rules(self):
        """Used to return a list of rules in order to make validation
        more reusable.

        Returns:
            list -- List of rules
        """
        return [
            required(['account', 'nickname', 'is_lock']),
            is_in('is_lock', ['0', '1']),
        ]
